package cn.iocoder.yudao.module.system.mq.producer.auth;

import cn.iocoder.yudao.framework.mq.core.RedisMqTemplate;
import cn.iocoder.yudao.module.system.mq.message.auth.Oauth2ClientRefreshMessage;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * OAuth 2.0 客户端相关消息的 Producer
 *
 * @author huangweidong
 * @date 2023/05/09
 */
@Component
public class Oauth2ClientProducer {

    @Resource
    private RedisMqTemplate redisMqTemplate;

    /**
     * 发送 {@link Oauth2ClientRefreshMessage} 消息
     */
    public void sendOauth2ClientRefreshMessage() {
        Oauth2ClientRefreshMessage message = new Oauth2ClientRefreshMessage();
        redisMqTemplate.send(message);
    }

}
